package com.lagou.edu.serviceImpl;

import com.lagou.edu.dao.LagouUserDao;
import com.lagou.edu.pojo.LagouUser;
import com.lagou.edu.service.LagouUserService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

@Service
public class LagouUserServiceImpl implements LagouUserService {

    @Autowired
    private LagouUserDao lagouUserDao;

    @Override
    public LagouUser getByUsername(String username) {
        return lagouUserDao.getByUsername(username);
    }

    @Override
    public LagouUser save(LagouUser lagouUser) {
        return lagouUserDao.save(lagouUser);
    }

    @Override
    public LagouUser getByUsernameAndPassword(String username, String password) {
        return lagouUserDao.getByUsernameAndPassword(username,password);
    }
}
